<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();

	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
	
	Object u = session.getAttribute("user");
	if (u!=null){
		response.sendRedirect("page/index.action");
	}else{
		response.sendRedirect(basePath+"login.action");
	}
%>
